package com.uaroadshow.entity.trade;

import com.demo2do.core.utils.Alias;

/**
 * 
 * @author mohanlan
 *
 */
@Alias("PaymentStatus")
public enum PaymentStatus {
    
    PENDING("pending", "待支付"),
    
    PAID("paid", "已支付"),
    
    REFUNDING("refunding", "待退款"),
    
    REFUNDED("refunded", "已退款");
    
    private String alias;
    
    private String description;
    
    /**
     * @param alias
     * @param description
     */
    private PaymentStatus(String alias, String description) {
        this.alias = alias;
        this.description = description;
    }
    
    /**
     * @return
     */
    public boolean isPaid() {
        return this.equals(PAID);
    }
    
    /**
     * 
     * @return
     */
    public String getAlias() {
        return alias;
    }
    
    /**
     * 
     * @return
     */
    public String getDescription() {
        return description;
    }
    
}
